//
//  SortDetailedGDTableViewCell.m
//  MountEverestFM
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 chenn. All rights reserved.
//

#import "SortDetailedGDTableViewCell.h"

@implementation SortDetailedGDTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.lable1=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable1];
        
        self.lable2=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable2];
        
        self.lable3=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable3];
        
        self.lable4=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable4];
        
        self.imageV1=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV1];
        
        self.imageV2=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV2];
        
        self.imageV3=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV3];
        
        self.imageV4=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV4];
        
        self.button=[UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:self.button];
        
        self.lableGD=[[UILabel alloc]init];
        [self.contentView addSubview:self.lableGD];
        
        self.lableBT=[[UILabel alloc]init];
        [self.contentView addSubview:self.lableBT];
        
        self.imageGD=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageGD];
        
        self.imV=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imV];
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    

    self.lableBT.frame=CGRectMake(FM_Screen_Pts_Width*30,  FM_Screen_Pts_Height*18, FM_Screen_Pts_Width*280, FM_Screen_Pts_Height*20);
    
    self.imageGD.frame=CGRectMake(FM_Screen_Pts_Width*10, FM_Screen_Pts_Height*20, FM_Screen_Pts_Width*15, FM_Screen_Pts_Height*15);
     self.lableGD.font=[UIFont systemFontOfSize:17];
    self.lableGD.frame=CGRectMake(FM_Screen_Pts_Width*300, FM_Screen_Pts_Height*15, FM_Screen_Pts_Width*80, FM_Screen_Pts_Height*20);
    self.lableGD.alpha=0.5;
    
    
    self.imV.frame=CGRectMake(FM_Screen_Width-FM_Screen_Pts_Width*25,  FM_Screen_Pts_Height*90, FM_Screen_Pts_Width*10, FM_Screen_Pts_Height*10);
    
    self.imageV1.frame=CGRectMake(FM_Screen_Pts_Width*10, FM_Screen_Pts_Height*60,FM_Screen_Pts_Width* 90, FM_Screen_Pts_Height*90);
    
    self.lable1.frame=CGRectMake(FM_Screen_Pts_Width*110, FM_Screen_Pts_Height*65, FM_Screen_Width-FM_Screen_Pts_Width*150, FM_Screen_Pts_Height*15);
    self.lable2.frame=CGRectMake(FM_Screen_Pts_Width*110, FM_Screen_Pts_Height*100, FM_Screen_Width-FM_Screen_Pts_Width*150, FM_Screen_Pts_Height*15);
    self.lable2.font=[UIFont systemFontOfSize:15];
    self.lable2.alpha=0.5;
    
    self.lable3.frame=CGRectMake(FM_Screen_Pts_Width*140, FM_Screen_Pts_Height*130, FM_Screen_Width-FM_Screen_Pts_Width*20, FM_Screen_Pts_Height*15);
    self.lable3.font=[UIFont systemFontOfSize:13];
    self.lable3.alpha=0.5;
    
    self.lable4.frame=CGRectMake(FM_Screen_Pts_Width*235, FM_Screen_Pts_Height*130, FM_Screen_Width-FM_Screen_Pts_Width*20, FM_Screen_Pts_Height*15);
    self.lable4.font=[UIFont systemFontOfSize:13];
    self.lable4.alpha=0.5;
    
    self.imageV2.frame=CGRectMake(FM_Screen_Pts_Width*120, FM_Screen_Pts_Height*132, FM_Screen_Pts_Width*13, FM_Screen_Pts_Height*13);
    self.imageV3.frame=CGRectMake(FM_Screen_Pts_Width*219, FM_Screen_Pts_Height*132, FM_Screen_Pts_Width*13, FM_Screen_Pts_Height*13);

    self.button.frame=CGRectMake(0, 0, FM_Screen_Width, FM_Screen_Pts_Height*50);
    self.button.backgroundColor=[UIColor whiteColor];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if (selected) {
        self.backgroundColor = Cell_Selected_Color;
    }else{
        self.backgroundColor = [UIColor whiteColor];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
